package com.jichangxiu.flow.server.core.entity.Bo;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * LinkBo:
 *
 * @author Jcx
 * @create 2025-01-01 00:00:00
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
public class ProcessBo {

    // 当前链路开始节点Id
    private String id;

    // 当前链路的父链路开始节点Id
    private String parentId;

    // 当前链路兄弟节点Id
    private String brotherId;

    // 当前链路节点Bo列表
    private NodeBo nodeBo;

    // 当前链路节点类型
    private String type;

    public ProcessBo(String id, String parentId, NodeBo nodeBo, String type) {
        this.id = id;
        this.parentId = parentId;
        this.nodeBo = nodeBo;
        this.type = type;
    }

    public static ProcessBo buildProcessBo(String id, String parentId, NodeBo nodeBo, String type) {
        return new ProcessBo(id, parentId, nodeBo, type);
    }

}
